﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrdenVentaReadForm.aspx.cs" 
Inherits="UILGestion.VentaAdmin.OrdenVenta.OrdenVentaReadForm " %>



<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>

<%@ Register src="OrdenVentaItem.ascx" tagname="OrdenVentaItem" tagprefix="uc2" %>


<%@ Register src="../RendicionVenta/RendicionVentaLiqListGrid.ascx" tagname="RendicionVentaLiqListGrid" tagprefix="uc2" %>
<%@ Register src="OrdenVentaRequerisitoItem.ascx" tagname="OrdenVentaRequerisitoItem" tagprefix="uc3" %>
<%@ Register src="../DocumentoVenta/DocumentoVentaListGrid.ascx" tagname="DocumentoVentaListGrid" tagprefix="uc4" %>
<%@ Register src="CuotaItemGrid.ascx" tagname="CuotaItemGrid" tagprefix="uc5" %>

<%@ Register src="cuentaItemDeletePanel.ascx" tagname="cuentaItemDeletePanel" tagprefix="uc7" %>



<%@ Register src="OrdenVentaContratoItem.ascx" tagname="OrdenVentaContratoItem" tagprefix="uc8" %>



<%--<%@ Register src="../Financiamiento/FinanciamientoListGrid.ascx" tagname="FinanciamientoListGrid" tagprefix="uc5" %>--%>



<%@ Register src="OrdenVentaFormato.ascx" tagname="OrdenVentaFormato" tagprefix="uc6" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <script src="../../Scripts/jquery-1.5.2.min.js" type="text/javascript"></script>

    <script src="../../Scripts/SearchResult.js" type="text/javascript"></script>
   <script type="text/javascript">
       $(document).ready(function () {
           $(document).bind('contextmenu', function (e) {
               return false;
           });
       });
</script>

<script type="text/javascript">
<!--

    function goPageDocumento(id) {
    window.open('../../Admin/ImagenSetForm.aspx?type=Documento&id=' + id.toString());
    }

    function goMakeDocumento(idArchivo, idOrdenVenta, idProyecto,idContrato) {
        window.open('../../Rpt/MakeDoc.aspx?idContrato=' + idContrato.toString() + '&idArchivo=' + idArchivo.toString() + '&idOrdenVenta=' + idOrdenVenta.toString() + '&idProyecto' + idProyecto.toString());
    }
    

-->
</script>




    </head>
<body>


    <form id="form1" runat="server">
     <input id="internalID" type="hidden" runat="server" />
     <input id="idEtapa" type="hidden" runat="server" />
      <input id="paginaAnt" type="hidden" runat="server" />
      <input id="idProyecto" type="hidden" runat="server" />
      
   
  <uc1:menuCtrl ID="menuCtrl1" runat="server" />
    
      <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
      EnableScriptGlobalization="true"  
     EnablePartialRendering="true" />
    
    <asp:Panel ID="pnlMain" runat="server"
  
                CssClass="Heading secTitle AreaHeading ms-crm-List-Header "  >
<asp:Label ID="Label2" runat="server" Text="ORDEN DE VENTA" 
            style="font-size: large; color: #960818"></asp:Label>
</asp:Panel>
     
  <asp:Panel ID="PanelButtom" runat="server"    class="ms-crm-Form-Body" >
                 <table  width="100%">
                 <tr>
                 <td  width="80%">
                 
   <table >
<tr>

        <td>
    <asp:Button ID="refreshBTN" runat="server" Text="Restablecer"   CssClass="ms-crm-List-Header" onclick="button" 
          /></td> 
           <td>
    <asp:Button ID="EditarBTN" runat="server" Text="Editar"   CssClass="ms-crm-List-Header" onclick="button" 
          /></td> 
        <td>
    <asp:Button ID="nuevoBTN" runat="server" Text="Nuevo"   CssClass="ms-crm-List-Header"  onclick="button"
          /></td> 


           <td>
    <asp:Button ID="AnularBTN" runat="server" Text="Anular"   CssClass="ms-crm-List-Header"  onclick="button"
          /></td> 
          
        <td>
    <asp:Button ID="eliminarBTN" runat="server" Text="Eliminar"   CssClass="ms-crm-List-Header"  onclick="button"
          /></td> 
 
 

   <td>
    <asp:Button ID="ListaBTN" runat="server" Text="Lista"   
           CssClass="ms-crm-List-Header"  onclick="button" Height="21px"
          /></td> 
           <td width="200px" align="right">
               <asp:Button ID="finalizadaBTN" runat="server" Text="Considerar Venta" CssClass="ms-crm-List-Header" BackColor="LightGreen" onclick="button" />

               
    
               
    </td> 
</tr>
</table>
                 </td>
                 <td>
               
                     <asp:Button ID="anteriorBTN" runat="server" CssClass="ms-crm-List-Header" 
                         onclick="button" Text="Anterior" />
                         </td>
                         <td>
                     <asp:Button ID="siguienteBTN" runat="server" CssClass="ms-crm-List-Header" 
                         onclick="button" Text="Siguiente" />
               
                 </td>
                 </tr>
                 </table>
 </asp:Panel>
  <asp:Panel ID="PanelBody" runat="server"  BackColor="white" >            
           <table>
               <tr>
                   <td rowspan="12" valign="top">
                       <table>
                           <tr>
                               <td align="right" width="100px">
                                   Num. Documento:</td>
                               <td width="280px">
                                   <b style="font-size:medium"><asp:Label ID="numDocumentoTXT" runat="server"></asp:Label></b>
                               </td>
                           </tr>
                           <tr>
                               <td align="right" width="100px">
                                   Fecha:</td>
                               <td width="280px">
                                   <asp:Label ID="fechaTXT" runat="server" Width="70px"></asp:Label>
                                   
                               </td>
                           </tr>
                           <tr>
                               <td align="right" width="100px">
                                   Propietario:
                               </td>
                               <td width="280px">
                                   <asp:HyperLink ID="clienteTXT" runat="server" ForeColor="Blue">
                                   </asp:HyperLink>
                                   </td>
                           </tr>
                           <tr>
                               <td align="right" valign="bottom" width="100px">
                                   Co Propietario:<asp:CheckBox ID="copropietarioCHK" runat="server"  Enabled="false"
                                        />
                               </td>
                               <td width="280px">
                                   <asp:UpdatePanel ID="copropietarioUPNL" runat="server" UpdateMode="Conditional">
                                       <ContentTemplate>
                                           <asp:Panel ID="copropietarioPNL" runat="server" Visible="false">
                                               

                                               <asp:HyperLink ID="coclienteTXT" runat="server" ForeColor="Blue"></asp:HyperLink>
                                           </asp:Panel>
                                       </ContentTemplate>
                                   </asp:UpdatePanel>
                               </td>
                           </tr>
                           <tr>
                               <td align="right" width="100px">
                                   Formato Venta:</td>
                               <td width="280px">
                                   <asp:Label ID="formatoVentaDDL" runat="server" AutoPostBack="true" 
                                       >
                                   </asp:Label>
                               </td>
                           </tr>
                           <tr>
                               <td align="right" width="100px">
                                   </td>
                               <td  width="280px">
                                   <asp:UpdatePanel ID="bancoUPNL" runat="server" UpdateMode="Conditional">
                                       <ContentTemplate>
                                           <asp:Panel ID="bancoPNL" runat="server">
                                               <table>
                                                   <tr>
                                                       <td align="right">
                                                           Banco:</td>
                                                       <td>
                                                           <asp:Label ID="bancoDDL" runat="server" Width="150px">
                                                           </asp:Label>
                                                       </td>
                                                   </tr>
                                                   <tr>
                                                       <td>
                                                           </td>
                                                       <td>
                                                           Es Cuenta Ahorro?:<asp:CheckBox ID="cuentaAhorroCHK" runat="server"  Enabled="false"/>
                                                       </td>
                                                   </tr>
                                               </table>
                                           </asp:Panel>
                                       </ContentTemplate>
                                   </asp:UpdatePanel>
                               </td>
                           </tr>
                       </table>
                   </td>
               </tr>
               <tr>
                   <td style="text-align: right" valign="top" width="100px">
                       Vendedor:</td>
                   <td valign="top">
                       <asp:Label ID="vendedorLBL" runat="server"></asp:Label>
                   </td>
                   <td align="right" rowspan="4" width="180px">
                       <asp:UpdatePanel ID="totalUPNL" runat="server" UpdateMode="Conditional">
                           <ContentTemplate>
                               <table class="PanelTotales">
                                   <tr>
                                       <td align="right">
                                           Total Venta:</td>
                                       <td align="right" width="90px">
                                           <asp:Label ID="simbol1LBL" runat="server"></asp:Label>
                                           <asp:Label ID="totalLabel" runat="server"></asp:Label>
                                       </td>
                                   </tr>
                                   <tr>
                                       <td align="right">
                                           Total Pago:</td>
                                       <td align="right">
                                           <asp:Label ID="simbol2LBL" runat="server"></asp:Label>
                                           <asp:Label ID="totalPagoLBL" runat="server"></asp:Label>
                                           <br />
                                       </td>
                                   </tr>
                                   <tr>
                                       <td align="right">
                                           Saldo:</td>
                                       <td align="right">
                                           <asp:Label ID="simbol3LBL" runat="server"></asp:Label>
                                           <asp:Label ID="saldoLBL" runat="server"></asp:Label>
                                       </td>
                                   </tr>
                               </table>
                           </ContentTemplate>
                       </asp:UpdatePanel>
                   </td>
               </tr>
               <tr>
                   <td align="right" valign="top" width="100px">
                       Comentario:</td>
                   <td rowspan="3" valign="top">
                       <asp:Label ID="comentarioTXT" runat="server"  
                            Width="200px"></asp:Label>
                   </td>
               </tr>
               <tr>
                   <td align="right" valign="top" width="100px">
                       </td>
               </tr>
               <tr>
                   <td align="right" valign="top" width="100px" >
                       </td>
               </tr>
               <tr>
                   <td align="right" valign="top" width="100px">
                       Moneda:</td>
                   <td>
                       <asp:Label ID="monedaLBL" runat="server" Text=""></asp:Label>
                   </td>
                   <td>
                       </td>
               </tr>
               <tr>
                   <td align="right" valign="top" width="100px">
                       Estado:</td>
                   <td>
                       <asp:Label ID="estadoLBL" runat="server" 
                           style="font-weight: 700; font-size: small" Width="200px"></asp:Label>
                   </td>
                   <td>
                       </td>
               </tr>
               <tr>
                   <td align="right" valign="top" width="100px">
                       </td>
                   <td>
                       <asp:Label ID="usuarioEstadoLBL" runat="server" Text=""></asp:Label><br />
                        <asp:Label ID="fechaEstadoLBL" runat="server" Text=""></asp:Label>
                   </td>
                   <td>
                       </td>
               </tr>
           </table>
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="4"><asp:TabPanel ID="BloqueTPNL" HeaderText="Item" 
runat="server">
<ContentTemplate>
    

    <asp:GridView ID="itemGridView" runat="server" AutoGenerateColumns="False" 
        ShowHeaderWhenEmpty="True" SkinID="GridView">
               
               
 

               
               <Columns>
                   

               <asp:BoundField DataField="codigo" headerText="CODIGO"> <HeaderStyle 
                       Width="80px" />
                   

               </asp:BoundField>
                   

               <asp:BoundField DataField="LocalizacionStr" headerText="LOCALIZACION">
                   

               <HeaderStyle Width="150px" />
                   

               </asp:BoundField>
               
              
                   
 
 

               
              
               <asp:TemplateField HeaderStyle-Width="150px" HeaderText="Nro LOTE/DPTO">
               
                   
 

               
               <ItemTemplate>
               
                   
 

               
                <asp:HyperLink ID="Hyperlink2" runat="server" ForeColor="Blue" NavigateUrl='<%# "~/VentaAdmin/UI/UIReadForm.aspx?id=" + 
                                            DataBinder.Eval (Container.DataItem,"idUI").ToString()  +
                                            "&idProyecto=" + DataBinder.Eval (Container.DataItem,"idProyecto").ToString()
                                            %>' Target="_self" 
                       Text='<%# DataBinder.Eval(Container.DataItem,"descripcion").ToString()%>' />   

                

   

                   </ItemTemplate>
                   
                   

               </asp:TemplateField>

            

                   

 



            

               <asp:BoundField DataField="totalStr" DataFormatString="{0:N}" headerText="TOTAL">
                   

                  <HeaderStyle Width="90px" />
                   

                  <ItemStyle HorizontalAlign="Right" />
                   

                  </asp:BoundField>
                   

                  <asp:CheckBoxField DataField="bitFinanciado" HeaderText="Financiado"><ItemStyle 
                       Width="70px" /></asp:CheckBoxField>
                   

                   </Columns>
        
                   

                   </asp:GridView>
    
                   
</ContentTemplate>
                   

    
 
    

 
                   

</asp:TabPanel><asp:TabPanel ID="RequisitosTPNL" HeaderText="Requisitos" runat="server">
                   

                   <ContentTemplate>
                       
 
                       
 
                       
                        
 
                       

 
                       

                       <uc3:OrdenVentaRequerisitoItem ID="OrdenVentaRequerisitoItem1" runat="server" />
                       


 
                       
 
                       
 
                       


                        
 
                       
 
 
                       

 
                       
 
                       
                   
</ContentTemplate>
                   
 
                   

 
                   


</asp:TabPanel><asp:TabPanel ID="TabPanel1" HeaderText="Contratos" runat="server">
                   

                   <ContentTemplate>
                       
 
                       
 
                       
 
                       
                        
 
                       
 
 
                       

 
                       
 
                       

                       <uc8:OrdenVentaContratoItem ID="OrdenVentaContratoItem1" runat="server" />
                       

 
                       
 
                       
 
                       

                        
 
                       
 
 
                       
 
                       
 
                       
                   
</ContentTemplate>
                   
 
                   

 
                   


</asp:TabPanel><asp:TabPanel ID="documentoTPNL" HeaderText="Documento Venta" runat="server">
    
    <ContentTemplate>
        
 
        

        <asp:HyperLink ID="nuevoDocumentoVentaHLK" runat="server" 
            CssClass="ms-crm-List-Header" Font-Size="Small" ForeColor="Blue"></asp:HyperLink>
        
 
 
         

 

        <asp:UpdatePanel ID="DocumentoVentaUPNL" runat="server" 
            UpdateMode="Conditional">
        

       <ContentTemplate>
            

            <uc4:DocumentoVentaListGrid ID="DocumentoVentaListGrid1" runat="server" 
               DataSourceID="documentoVentaStrListODS" />
       

            
 


       

        <asp:ObjectDataSource ID="documentoVentaStrListODS" runat="server" 
               EnablePaging="True" SelectCountMethod="Count" SelectMethod="Execute" 
               SortParameterName="sortExpression" typeName="BOL.Ventas.GetDocumentoVentaList">
               

               <SelectParameters>
                
                   
 

                
                 <asp:querystringparameter Name="idOrdenVenta" querystringfield="id" 
                       Type="String" />
                   

                <asp:Parameter Name="startRowIndex" Type="Int32" />
                   

                <asp:Parameter Name="maximumRows" Type="Int32" />
                   

                <asp:Parameter Name="sortExpression" Type="String" />

                   



                </SelectParameters>
            
               

               </asp:ObjectDataSource>

   
            

 

   
            </ContentTemplate>
            
         

         </asp:UpdatePanel>
        


 


    
</ContentTemplate>
    
 

</asp:TabPanel><asp:TabPanel ID="DeudaTPNL" HeaderText="Saldo a Cobrar" runat="server">
                   

                   <ContentTemplate>
                       

 
                       
                       


                       <asp:Button ID="cuotasAddBTN" runat="server" CssClass="ms-crm-List-Header" 
                           OnClick="button" Text="Crear Fraccionamiento" />

                       
 
                       

                       

                       <asp:LinkButton ID="LinkButton1" runat="server"></asp:LinkButton>

                       
 
                       

                       

                       <asp:ModalPopupExtender ID="cuotaModalPPE" runat="server" 
                           BackgroundCssClass="modalBackground" CancelControlID="cancelarCuotaButton" 
                           DropShadow="True" DynamicServicePath="" Enabled="True" 
                           PopupControlID="cuotaParentPanel" PopupDragHandleControlID="cuotaPanel" 
                           TargetControlID="LinkButton1"></asp:ModalPopupExtender>

                       
 
                       
 
                       

                        
 
                       

 
                       

                       <asp:Button ID="cuotasDelBTN" runat="server" CssClass="ms-crm-List-Header" 
                           OnClick="button" Text="Eliminar Fraccionamiento" />

                       
 
                       

                       

                       <asp:LinkButton ID="LinkButton2" runat="server"></asp:LinkButton>

                       

 
                       


                       


                       <asp:ModalPopupExtender ID="cuotaDelModelPPE" runat="server" 
                           BackgroundCssClass="modalBackground" CancelControlID="cancelarCuotadelButton" 
                           DropShadow="True" DynamicServicePath="" Enabled="True" 
                           PopupControlID="delCuotaParentPanel" PopupDragHandleControlID="delCuotaPanel" 
                           TargetControlID="LinkButton2"></asp:ModalPopupExtender>

                       

 
                       


                       


                       <asp:Button ID="montoCHBTN" runat="server" CssClass="ms-crm-List-Header" 
                           OnClick="button" Text="Cambiar Monto Cred. Hipotecario" />

                       
 
                       

                       

                       <asp:LinkButton ID="LinkButton3" runat="server"></asp:LinkButton>

                       

 
                       


                       


                       <asp:ModalPopupExtender ID="CreditoHipotecarioPPE" runat="server" 
                           BackgroundCssClass="modalBackground" CancelControlID="cancelarCHBTN" 
                           DropShadow="True" DynamicServicePath="" Enabled="True" 
                           PopupControlID="creditoHipotecarioParentPanel" 
                           PopupDragHandleControlID="creditoHipotecarioPanel" 
                           TargetControlID="LinkButton3"></asp:ModalPopupExtender>

                       


 
                       



                       



                       <asp:Button ID="montoBonoBTN" runat="server" CssClass="ms-crm-List-Header" 
                           OnClick="button" Text="Cambiar Monto Bono" />

                       
 
                       

                       

                       <asp:LinkButton ID="LinkButton4" runat="server"></asp:LinkButton>

                       

 
                       


                       


                       <asp:ModalPopupExtender ID="bonoPPE" runat="server" 
                           BackgroundCssClass="modalBackground" CancelControlID="cancelarBonoBTN" 
                           DropShadow="True" DynamicServicePath="" Enabled="True" 
                           PopupControlID="bonoParentPanel" PopupDragHandleControlID="bonoPanel" 
                           TargetControlID="LinkButton4"></asp:ModalPopupExtender>

                       



 
                       




                       




                       <uc6:OrdenVentaFormato ID="OrdenVentaFormato1" runat="server" />

                       
 
                       

                   
</ContentTemplate>
                   
 
                   

</asp:TabPanel><asp:TabPanel ID="pagoTPNL" HeaderText="Pagos" runat="server">
    
<ContentTemplate>
        
 
        

        <asp:HyperLink ID="addpagoLHK" runat="server" ForeColor="Blue" 
            Text="Nuevo Pago"></asp:HyperLink>

 
 

        <br />
        

 
        
<uc2:RendicionVentaLiqListGrid ID="RendicionVentaLiqListGrid2" runat="server" 
            DataSourceID="rendicionVentaLiqListODS" />

 
        
<asp:ObjectDataSource ID="rendicionVentaLiqListODS" runat="server" EnablePaging="True" 
            SelectCountMethod="Count" SelectMethod="Execute" 
            SortParameterName="sortExpression" 
            typeName="BOL.RendicionVentas.GetRendicionVentaLiqList">
               

               <SelectParameters>
                
                   
 

                
                 <asp:querystringparameter Name="idOrdenVenta" querystringfield="id" 
                       Type="String" />
                   

                <asp:Parameter Name="startRowIndex" Type="Int32" />
                   

                <asp:Parameter Name="maximumRows" Type="Int32" />
                   

                <asp:Parameter Name="sortExpression" Type="String" />

                   



                </SelectParameters>
            
               

               </asp:ObjectDataSource>
 
        

    
</ContentTemplate>
    
 

</asp:TabPanel></asp:TabContainer>
  </asp:Panel>


  
<asp:Panel ID="cuotaParentPanel" runat="server" Height="400px"  >
  <asp:Panel ID="cuotaPanel"   runat="server" Height="400px"  Width="900px"  Style="background-color:#DDDDDD;border:solid 1px Gray;color:Black">
  <asp:Panel ID="Panel9" runat="server" Height="370px"  class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Right">
   
    <uc5:CuotaItemGrid ID="CuotaItemGrid1" runat="server" />
    </asp:Panel>
 <asp:Panel ID="Panel10" runat="server"   >
        
<table width="100%" >
 <tr  >
               
                <td class=" ms-crm-Dialog-Footer-Right">
               
                     <asp:Button ID="aceptarCuotaButton"  runat="server"  Text="Guardar "  CssClass="ms-crm-List-Header"
                      onclick="button"  OnClientClick="return confirm('Usted quiere Guardar Transaccion?')"
                       
                        />
                    <asp:Button ID="cancelarCuotaButton"  runat="server" Text="Cancelar" CssClass="ms-crm-List-Header"
                    
                       
                       />
                   
                </td>
   </tr>


   
</table>
        </asp:Panel> 
           
          
        </asp:Panel>
    
</asp:Panel>



      <asp:Panel ID="delCuotaParentPanel" runat="server"   CssClass="modalPopup">
  <asp:Panel ID="delCuotaPanel"   runat="server"    
  BorderColor="LightBlue"  BorderStyle="Solid" Style="background-color:#DDDDDD;border:solid 1px Gray;color:Black">
              
 


 <asp:Panel ID="Panel17" runat="server"   >
        
<table width="100%" >
 <tr  >
               
                <td class=" ms-crm-Dialog-Footer-Right">
               
                     <asp:Button ID="delCuotaButton"  runat="server"  Text="Eliminar "  CssClass="ms-crm-List-Header"
                      onclick="button"    OnClientClick="return confirm('Seguro que desea eliminar la Transacción?')" 
                       
                        />
                    <asp:Button ID="cancelarCuotadelButton"  runat="server" Text="Cancelar" CssClass="ms-crm-List-Header"
                    
                       
                       />
                   
                </td>
   </tr>


   
</table>
        </asp:Panel> 
 <asp:Panel ID="Panel6" runat="server"  
          class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Right">
      <asp:UpdatePanel ID="cuotaDelUPNL" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
  

   <uc7:cuentaItemDeletePanel ID="cuentaItemDeletePanel1" runat="server" DataSourceID="financiamientoStrListODS" />

              
          <asp:ObjectDataSource ID="financiamientoStrListODS"  runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="Execute" 
             typeName="BOL.Ventas.GetFinanciamientoList" >
               <SelectParameters>
                <asp:querystringparameter Name="idOrdenVenta" querystringfield="id" Type="Int32" />
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                <asp:Parameter Name="maximumRows" Type="Int32" />
                <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>
       


      </ContentTemplate>


      <Triggers>
<asp:AsyncPostBackTrigger ControlID="TabContainer1$DeudaTPNL$cuotasDelBTN" />
<asp:AsyncPostBackTrigger ControlID="cancelarCuotadelButton" />



</Triggers>


      
      </asp:UpdatePanel>
  </asp:Panel>


     </asp:Panel>
          </asp:Panel>
      

  


    <asp:Panel ID="creditoHipotecarioParentPanel" runat="server"   CssClass="modalPopup">
  <asp:Panel ID="creditoHipotecarioPanel"   runat="server"    
  BorderColor="LightBlue"  BorderStyle="Solid" Style="background-color:#DDDDDD;border:solid 1px Gray;color:Black">
              
 


 
 <asp:Panel ID="Panel4" runat="server"  
          class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Right">
      <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>


          <table width="600px">
              <tr>
                  <td align="right">
                      Unidad Inmobiliaria:</td>
                  <td colspan="2">
                      <asp:DropDownList ID="undInmobiliariaDDL" runat="server" AutoPostBack="true" 
                          Width="350px" onselectedindexchanged="undInmobiliariaDDL_SelectedIndexChanged">
                      </asp:DropDownList>
                  </td>
              </tr>
              </tr>
              <tr>
                  <td align="right">
                      Actual Monto Cred. Hipotecario:</td>
                  <td align="left"  colspan="2">
                      <b style="font-size:medium "><asp:Label ID="actualCHLBL" runat="server"></asp:Label></b>
                  </td>
                  <tr>
                      <td align="right">
                          Nuevo Monto Cred. Hipotecario:</td>
                      <td align="right" width="5px" >

                          <b style="font-size:medium"><asp:Label runat="server" ID="simbolLBL" ></asp:Label></b>
                          </td>
                          <td  Width="400"><lib:Input ID="NUEVOCHTXT"  runat="server" Width="80px" DataType="Double" />
                      </td>
                  </tr>
              </tr>
          </table>


      </ContentTemplate>


      <Triggers>
      <asp:AsyncPostBackTrigger ControlID="TabContainer1$DeudaTPNL$montoCHBTN" />
      
<asp:AsyncPostBackTrigger ControlID="undInmobiliariaDDL" />
<asp:AsyncPostBackTrigger ControlID="cancelarCuotadelButton" />



</Triggers>


      
      </asp:UpdatePanel>
  </asp:Panel>
  <asp:Panel ID="Panel3" runat="server"   >
        
<table width="100%" >
 <tr  >
               
                <td class=" ms-crm-Dialog-Footer-Right">
               
                     <asp:Button ID="aceptarCHBTN"  runat="server"  Text="Guardar"  CssClass="ms-crm-List-Header"
                      onclick="button"    OnClientClick="return confirm('Seguro que desea guardar la Transacción?')" 
                       
                        />
                    <asp:Button ID="cancelarCHBTN"  runat="server" Text="Cancelar" CssClass="ms-crm-List-Header"
                    
                       
                       />
                   
                </td>
   </tr>


   
</table>
        </asp:Panel> 

     </asp:Panel>
          </asp:Panel>






             <asp:Panel ID="bonoParentPanel" runat="server"   CssClass="modalPopup">
  <asp:Panel ID="bonoPanel"   runat="server"    
  BorderColor="LightBlue"  BorderStyle="Solid" Style="background-color:#DDDDDD;border:solid 1px Gray;color:Black">
              
 


 
 <asp:Panel ID="Panel5" runat="server"  
          class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Right">
      <asp:UpdatePanel ID="bonoUPNL" runat="server" UpdateMode="Conditional">
      <ContentTemplate>


          <table width="600px">
              <tr>
                  <td align="right">
                      Unidad Inmobiliaria:</td>
                  <td colspan="2">
                      <asp:DropDownList ID="uiBonoDDL" runat="server" AutoPostBack="true" 
                          Width="350px" onselectedindexchanged="uiBonoDDL_SelectedIndexChanged">
                      </asp:DropDownList>
                  </td>
              </tr>
              </tr>
              <tr>
                  <td align="right">
                      Actual Monto Bono:</td>
                  <td align="left" colspan="2">
                      <b style="font-size:medium"><asp:Label ID="bonoLBL" runat="server"></asp:Label></b>
                  </td>
                  <td></td>
                  <tr>
                      <td align="right">
                          Nuevo Monto Bono:</td>
                        <td align="right" width="5px" >
                         <b style="font-size:medium"> <asp:Label runat="server" ID="simbolBonoLBL" ></asp:Label></b>
                          </td>
                            <td  width="400px" >
                          <lib:Input ID="nuevoBonoTXT"  runat="server" Width="80px" DataType="Double" />
                      </td>
                      <td></td>
                  </tr>
              </tr>
          </table>


      </ContentTemplate>


      <Triggers>
      <asp:AsyncPostBackTrigger ControlID="TabContainer1$DeudaTPNL$montoBonoBTN" />
      

<asp:AsyncPostBackTrigger ControlID="cancelarCuotadelButton" />



</Triggers>


      
      </asp:UpdatePanel>
  </asp:Panel>
  <asp:Panel ID="Panel7" runat="server"   >
        
<table width="100%" >
 <tr  >
               
                <td class=" ms-crm-Dialog-Footer-Right">
               
                     <asp:Button ID="aceptarBonoBTN"  runat="server"  Text="Guardar"  CssClass="ms-crm-List-Header"
                      onclick="button"    OnClientClick="return confirm('Seguro que desea guardar la Transacción?')" 
                        
                        />
                    <asp:Button ID="cancelarBonoBTN"  runat="server" Text="Cancelar" CssClass="ms-crm-List-Header"  />
                   
                </td>
   </tr>


   
</table>
        </asp:Panel> 

     </asp:Panel>
          </asp:Panel>
 
     
      

  

  





 
    </form>
   
    </body>
</html>
